package com.ecelin.utils;

/**
 * @author ecelin@ecelin.com
 */
public class AutoCloseableUtils {
	public static void close(AutoCloseable... autoCloseable) {
		if (autoCloseable.length > 0) {
			for (AutoCloseable closeable : autoCloseable) {
				try {
					if (null != closeable) {
						closeable.close();
					}
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		}
	}
}
